#!/bin/bash

if [[ -z "$(acpi 2> /dev/null)" ]]; then
    echo "noBattery"
    exit
fi

echo $(acpi | sed -e 's/, /\n/g' | grep % | sed -e 's/%//g')
